gtk/gtkmenu.c remove unused macro cruft. Also remove some unneeded
authorMichael Natterer <mitch@imendio.com>
Wed, 3 Sep 2008 15:23:17 +0000 (15:23 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Wed, 3 Sep 2008 15:23:17 +0000 (15:23 +0000)
2008-09-03  Michael Natterer  <mitch@imendio.com>

* gtk/gtkmenu.c
* gtk/gtkmenuitem.c: remove unused macro cruft. Also remove some
unneeded includes.

svn path=/trunk/; revision=21266

ChangeLog
gtk/gtkmenu.c
gtk/gtkmenuitem.c

index aa514390a0b1d47a2f8200d6fa9c4adeeae5fc94..64cb802987fe3e77306b46121c461bcad09f6337 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-03  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkmenu.c
+       * gtk/gtkmenuitem.c: remove unused macro cruft. Also remove some
+       unneeded includes.
+
 2008-09-03  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkarrow.c: expose-event returns gboolean not gint,
index 959ebd9a2662bdde8aaa32992b3a70ab3c5e697a..9cfbdb19c8dc33164176d3cc76f4ea6b6fa1ebfb 100644 (file)
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
 #define GTK_MENU_INTERNALS
 #include "config.h"
-#include <string.h> /* memset */
+#include <string.h>
 #include "gdk/gdkkeysyms.h"
 #include "gtkaccellabel.h"
 #include "gtkaccelmap.h"
 #include "gtkbindings.h"
-#include "gtklabel.h"
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkmenu.h"
-#include "gtkmenuitem.h"
 #include "gtktearoffmenuitem.h"
 #include "gtkwindow.h"
 #include "gtkhbox.h"
 #include "gtkalias.h"
 
 
-#define MENU_ITEM_CLASS(w)   GTK_MENU_ITEM_GET_CLASS (w)
-
-#define DEFAULT_POPUP_DELAY    225
+#define DEFAULT_POPUP_DELAY     225
 #define DEFAULT_POPDOWN_DELAY  1000
 
 #define NAVIGATION_REGION_OVERSHOOT 50  /* How much the navigation region
                                         * extends below the submenu
                                         */
 
-#define MENU_SCROLL_STEP1 8
-#define MENU_SCROLL_STEP2 15
-#define MENU_SCROLL_FAST_ZONE 8
-#define MENU_SCROLL_TIMEOUT1 50
-#define MENU_SCROLL_TIMEOUT2 20
+#define MENU_SCROLL_STEP1      8
+#define MENU_SCROLL_STEP2     15
+#define MENU_SCROLL_FAST_ZONE  8
+#define MENU_SCROLL_TIMEOUT1  50
+#define MENU_SCROLL_TIMEOUT2  20
 
 #define ATTACH_INFO_KEY "gtk-menu-child-attach-info-key"
 #define ATTACHED_MENUS "gtk-attached-menus"
@@ -248,7 +244,7 @@ static gboolean gtk_menu_real_can_activate_accel (GtkWidget *widget,
 static void _gtk_menu_refresh_accel_paths (GtkMenu *menu,
                                           gboolean group_changed);
 
-static const gchar       attach_data_key[] = "gtk-menu-attach-data";
+static const gchar attach_data_key[] = "gtk-menu-attach-data";
 
 static guint menu_signals[LAST_SIGNAL] = { 0 };
 
index b8fae7614916039182e886e9e1c680c21cc2afc1..b0d6198618a3830aba51841922f535ac84e2cb87 100644 (file)
@@ -21,7 +21,7 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
 #define GTK_MENU_INTERNALS
 #include "gtkmarshalers.h"
 #include "gtkmenu.h"
 #include "gtkmenubar.h"
-#include "gtkmenuitem.h"
 #include "gtkseparatormenuitem.h"
 #include "gtkprivate.h"
 #include "gtkintl.h"
 #include "gtkalias.h"
 
-#define MENU_ITEM_CLASS(w)  GTK_MENU_ITEM_CLASS (GTK_OBJECT (w)->klass)
-
 enum {
   ACTIVATE,
   ACTIVATE_ITEM,